<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>customers list</title>
<style type="text/css">
  table,tr,td{
    border: 1px solid red;
  }
</style>
</head>
<body>
<h1>list</h1>
<table>
    <tr>
      <td>id</td>
      <td>name</td>
      <td>sal</td>
      <td>sex </td>
	  <td>birth</td>
    </tr>
	<c:forEach items="${customers}" var="c" >
		<tr>
		 <td>${c.id }</td>
		 <td>${c.cname }</td>
		 <td>${c.sal }</td>
		 <c:if test="${c.sex}">
		  <td>男</td>
		 </c:if>
		 <c:if test="${!c.sex}">
		  <td>女</td>
		 </c:if>
		 <td>
		 <fmt:formatDate value="${c.birth }"/>
		 </td>
		</tr>
	</c:forEach>
</table>

</body>
</html>